﻿using System;

namespace com.hyrentals.data
{
    /// <summary>
    /// 站内消息表
    /// </summary>
    public class Notice
    {
        // 自增消息Id
        public int NoticeId { get; set; }

        // 发件人Id
        public string SenderId { get; set; }

        // 发件人类型
        public UserTypeEnum SenderType { get; set; }

        // 收件人列表
        public string Receivers { get; set; }

        // 消息标题
        public string Subject { get; set; }

        // 消息内容
        public string Message { get; set; }

        // 消息发送状态
        public NoticeStatus SendStatus { get; set; }

        // 站内信类型
        public NoticeType Type { get; set; }

        // 发送时间
        public DateTime SendTime { get; set; }

        // 发布时间
        public DateTime? PostTime { get; set; }

        // 过期时间
        public DateTime? ExpireTime { get; set; }

        // 发送Id
        public int SendToId { get; set; }

        // 收件人Id
        public string ReceiverId { get; set; }

        // 收件人类型
        public UserTypeEnum ReceiverType { get; set; }

        // 消息接收状态
        public NoticeStatus ReceiveStatus { get; set; }



    }

    public enum NoticeStatus : int
    {
        NoRead = 0,
        Read = 1,
        Normal = 2,
        Delete = 3
    }

    public enum NoticeType : int
    {
        Global = 0,
        Public = 1,
        Private = 2
    }
}
